package StateManagementIRPConstDefs;
/**
 * Generated from IDL enum "ControlStatusValues".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ControlStatusValues
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _SubjectToTest = 0;
	public static final ControlStatusValues SubjectToTest = new ControlStatusValues(_SubjectToTest);
	public static final int _PartOfServicesLocked = 1;
	public static final ControlStatusValues PartOfServicesLocked = new ControlStatusValues(_PartOfServicesLocked);
	public static final int _ReservedForTest = 2;
	public static final ControlStatusValues ReservedForTest = new ControlStatusValues(_ReservedForTest);
	public static final int _Suspended = 3;
	public static final ControlStatusValues Suspended = new ControlStatusValues(_Suspended);
	public int value()
	{
		return value;
	}
	public static ControlStatusValues from_int(int value)
	{
		switch (value) {
			case _SubjectToTest: return SubjectToTest;
			case _PartOfServicesLocked: return PartOfServicesLocked;
			case _ReservedForTest: return ReservedForTest;
			case _Suspended: return Suspended;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _SubjectToTest: return "SubjectToTest";
			case _PartOfServicesLocked: return "PartOfServicesLocked";
			case _ReservedForTest: return "ReservedForTest";
			case _Suspended: return "Suspended";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected ControlStatusValues(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
